(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[34],{

/***/ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/flowable/modules/flowmgr/modify.vue?vue&type=script&lang=js&":
/*!***********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/flowable/modules/flowmgr/modify.vue?vue&type=script&lang=js& ***!
  \***********************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.find.js */ "./node_modules/core-js/modules/es.array.find.js");
/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_2__);



/* harmony default export */ __webpack_exports__["default"] = ({
  name: '',
  //页面引用的组件
  components: {},
  //父页面传递参数
  props: {},
  data: function data() {
    return {
      formLoading: false,
      modalShow: false,
      title: '新建流程',
      isEdit: false,
      formData: {
        name: ''
      },
      formRules: {
        name: [{
          required: true,
          message: '请输入流程名称'
        }]
      },
      serviceList: []
    };
  },
  //监控计算变量
  computed: {},
  //监听
  watch: {},
  //页面的构造方法
  created: function created() {
    // this.getServiceList();
  },
  //父页面定义方法给子页面inject调用
  provide: function provide() {
    return {};
  },
  //子组件调用注入到父页面providee
  inject: [],
  //dom加载完
  mounted: function mounted() {},
  //页面的自定义方法
  methods: {
    showPage: function showPage(row) {
      var _this = this;
      this.XEUtils.clear(this.formData, '');
      this.title = row == 'add' ? '新建流程' : '修改流程';
      this.isEdit = row == 'add' ? false : true;
      if (this.isEdit) {
        this.formData.id = row.id;
        this.XEUtils.destructuring(this.formData, row);
      } else {
        delete this.formData.id;
      }
      this.modalShow = true;
      this.$nextTick(function () {
        _this.$refs.xForm.clearValidate();
      });
    },
    submit: function submit() {
      var _this2 = this;
      this.formLoading = true;
      this.$http({
        method: 'post',
        url: this.isEdit ? this.apiHost + '/script/update' : this.apiHost + '/script/add',
        data: this.formData
      }).then(function (res) {
        if (res.data.code == 200) {
          _this2.$message.success('保存成功');
          _this2.$emit("reloadData", true);
          _this2.modalShow = false;
        }
      }).finally(function () {
        _this2.formLoading = false;
      });
    },
    getServiceList: function getServiceList() {
      var _this3 = this;
      this.$http({
        method: 'post',
        url: this.apiHost + '/flowableDefinition/admin/serviceList'
      }).then(function (res) {
        if (res.data.code == 200) {
          _this3.serviceList = res.data.data;
        }
      });
    },
    onSelectService: function onSelectService(_ref) {
      var value = _ref.value;
      var node = this.serviceList.find(function (item) {
        return item.definitionCode == value;
      });
      this.formData.name = node ? node.name : '';
    }
  }
});

/***/ }),

/***/ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"477e174c-vue-loader-template\"}!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/flowable/modules/flowmgr/modify.vue?vue&type=template&id=f3b427f8&scoped=true&":
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"477e174c-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/flowable/modules/flowmgr/modify.vue?vue&type=template&id=f3b427f8&scoped=true& ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0__);

var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("vxe-modal", {
    attrs: {
      title: _vm.title,
      width: "550",
      "lock-view": true,
      "lock-scroll": true,
      mask: true,
      "z-index": 30,
      transfer: true
    },
    model: {
      value: _vm.modalShow,
      callback: function callback($$v) {
        _vm.modalShow = $$v;
      },
      expression: "modalShow"
    }
  }, [_c("vxe-form", {
    ref: "xForm",
    attrs: {
      data: _vm.formData,
      rules: _vm.formRules,
      "title-colon": true,
      "title-align": "right",
      "title-width": "100"
    }
  }, [_c("vxe-form-item", {
    attrs: {
      field: "name",
      title: "流程名称",
      span: "24"
    }
  }, [_c("vxe-input", {
    attrs: {
      type: "text",
      placeholder: "请输入流程名称",
      maxlength: "200"
    },
    model: {
      value: _vm.formData.name,
      callback: function callback($$v) {
        _vm.$set(_vm.formData, "name", $$v);
      },
      expression: "formData.name"
    }
  })], 1), _c("vxe-form-item", {
    attrs: {
      span: "24",
      align: "center"
    }
  }, [_c("a-button", {
    staticClass: "mr10",
    attrs: {
      type: "primary",
      "html-type": "button",
      loading: _vm.formLoading
    },
    on: {
      click: _vm.submit
    }
  }, [_vm._v(" 确定 ")]), _c("a-button", {
    attrs: {
      "html-type": "button"
    },
    on: {
      click: function click($event) {
        _vm.modalShow = false;
      }
    }
  }, [_vm._v(" 取消 ")])], 1)], 1)], 1);
};
var staticRenderFns = [];
render._withStripped = true;


/***/ }),

/***/ "./src/views/flowable/modules/flowmgr/modify.vue":
/*!*******************************************************!*\
  !*** ./src/views/flowable/modules/flowmgr/modify.vue ***!
  \*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _modify_vue_vue_type_template_id_f3b427f8_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./modify.vue?vue&type=template&id=f3b427f8&scoped=true& */ "./src/views/flowable/modules/flowmgr/modify.vue?vue&type=template&id=f3b427f8&scoped=true&");
/* harmony import */ var _modify_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modify.vue?vue&type=script&lang=js& */ "./src/views/flowable/modules/flowmgr/modify.vue?vue&type=script&lang=js&");
/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");





/* normalize component */

var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
  _modify_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  _modify_vue_vue_type_template_id_f3b427f8_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
  _modify_vue_vue_type_template_id_f3b427f8_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  "f3b427f8",
  null
  
)

/* hot reload */
if (false) { var api; }
component.options.__file = "src/views/flowable/modules/flowmgr/modify.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ "./src/views/flowable/modules/flowmgr/modify.vue?vue&type=script&lang=js&":
/*!********************************************************************************!*\
  !*** ./src/views/flowable/modules/flowmgr/modify.vue?vue&type=script&lang=js& ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_modify_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/babel-loader/lib!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib??vue-loader-options!./modify.vue?vue&type=script&lang=js& */ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/flowable/modules/flowmgr/modify.vue?vue&type=script&lang=js&");
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_modify_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); 

/***/ }),

/***/ "./src/views/flowable/modules/flowmgr/modify.vue?vue&type=template&id=f3b427f8&scoped=true&":
/*!**************************************************************************************************!*\
  !*** ./src/views/flowable/modules/flowmgr/modify.vue?vue&type=template&id=f3b427f8&scoped=true& ***!
  \**************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_477e174c_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_modify_vue_vue_type_template_id_f3b427f8_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"477e174c-vue-loader-template"}!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/babel-loader/lib!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib??vue-loader-options!./modify.vue?vue&type=template&id=f3b427f8&scoped=true& */ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"477e174c-vue-loader-template\"}!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/flowable/modules/flowmgr/modify.vue?vue&type=template&id=f3b427f8&scoped=true&");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_477e174c_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_modify_vue_vue_type_template_id_f3b427f8_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_477e174c_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_modify_vue_vue_type_template_id_f3b427f8_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });



/***/ })

}]);